﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OAuth.Dapper.Models;

namespace OAuth.Server.Domain
{
    public interface IAccountRepository
    {

        Task<List<Account>> GetAccounts();

        Task<Account> GetAccountById(int id);

        Task Create(Account model);

        Task<int> Insert(Account model);

        Task<Account> Login(string userName,string pwassword);

        Task<Account> GetAccountByUserNameAsync(string userName);
    }
}
